<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- saved from url=(0026)http://m.jd.com/index.html -->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>京东触屏版</title>
<meta name="author" content="m.jd.com">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="format-detection" content="telephone=no">
<link rel="stylesheet" type="text/css" href="css/base.css" charset="gbk">
<link rel="apple-touch-icon-precomposed" href="http://m.jd.comimages/apple-touch-icon.png">

		<script src="js/zepto.min.js"></script>
		<script type="text/javascript">window.jQuery=window.Zepto;</script>
		<script type="text/javascript" src="js/common.js"></script>
</head>

<body id="body">

<style type="text/css">
	body{word-break:break-all;}
    /*图片尺寸修改后 必须改此尺寸  多平台时需要适配*/
	 .container1 img{
		width:320px;
		height:180px;
		margin:0px auto;
	}
	.container1 {
		width:320px;
		height:180px;
		margin:0px auto;
		text-align:center;
	}
    .pic-num1 {
		position: absolute;
		left: 0;
		bottom: 3px;
		width: 320px;
		height: 10px;
		text-align: center;
    }
    .pic-num1 li {
		display: inline-block;
		width: 7px;
		height: 7px;
		margin-left: 7px;
		border-radius: 6px;
		background-color: #63CE49;
		text-indent: -9999px;
    }
	.pic-num1 li.on {
        background-color: #e4393c;
    }

    </style>
<div class="index-ads w">
  <div class="container1" id="idContainer2" ontouchmove="touchMove(event);" ontouchend="touchEnd(event);" style="text-align: center; position: relative; overflow: hidden;">
    <div style=" position:relative;height:100px;">
      <table id="idSlider2" border="0" cellpadding="0" cellspacing="0" style="height: 100px; position: absolute; left: -608px;">
        <tbody>
          <tr>
            <td><a href="http://m.jd.com/activity/list.action?activityId=8965&sid=89bec302bfe1757c8702933602c3984a"> <img src="./京东触屏版_files/rBEhVVHpGfwIAAAAAACxnUmHuIcAABOPAITyaEAALG1092.jpg" alt="上客户端下首单送5元" style="box-shadow:-2px 2px 2px #999;"> </a></td>
            <td><a href="http://m.jd.com/activity/list.action?activityId=9922&sid=89bec302bfe1757c8702933602c3984a"> <img src="./京东触屏版_files/rBEhV1IC7XoIAAAAAAA0njfSDzcAAB3qgEMnzoAADS2038.jpg" alt="畅销童书半价5折封顶" style="box-shadow:-2px 2px 2px #999;"> </a></td>
            <td><a href="http://m.jd.com/activity/list.action?activityId=9795&sid=89bec302bfe1757c8702933602c3984a"> <img src="./京东触屏版_files/rBEhVlIAaHAIAAAAAABDqaf9JqoAABy-gBxV5kAAEPB121.jpg" alt="当季女性 数码时尚志" style="box-shadow:-2px 2px 2px #999;"> </a></td>
            <td><a href="http://m.jd.com/activity/list.action?activityId=9838&sid=89bec302bfe1757c8702933602c3984a"> <img src="./京东触屏版_files/rBEhWlIBrKUIAAAAAAAvX8FQQJ8AABy6QJktOAAAC93841.jpg" alt="七夕书碟全场满98+2赠畅品" style="box-shadow:-2px 2px 2px #999;"> </a></td>
            <td><a href="http://m.jd.com/activity/list.action?activityId=9702&sid=89bec302bfe1757c8702933602c3984a"> <img src="./京东触屏版_files/rBEhU1H_CcoIAAAAAAB5fHJOmEUAABunAPI3f4AAHmU114.jpg" alt="回到初love 百货七夕大促" style="box-shadow:-2px 2px 2px #999;"> </a></td>
            <td><a href="http://m.jd.com/activity/list.action?activityId=9714&sid=89bec302bfe1757c8702933602c3984a"> <img src="./京东触屏版_files/rBEhVFH_FPQIAAAAAAApwfIgTqoAABuwgEsC3AAACnZ043.jpg" alt="热恋全城 全场3折起" style="box-shadow:-2px 2px 2px #999;"> </a></td>
            <td><a href="http://m.jd.com/activity/list.action?activityId=9841&sid=89bec302bfe1757c8702933602c3984a"> <img src="./京东触屏版_files/rBEhWFIBrasIAAAAAABCalGlxicAABy7AJ_kCIAAEKC854.jpg" alt="美好生活书单5.9折封顶" style="box-shadow:-2px 2px 2px #999;"> </a></td>
            <td><a href="http://m.jd.com/activity/list.action?activityId=9719&sid=89bec302bfe1757c8702933602c3984a"> <img src="./京东触屏版_files/rBEhWVH_GDMIAAAAAABIw3NJMr0AABuUQMWvMgAAEjb967.jpg" alt="艳遇低价 邂逅惊喜" style="box-shadow:-2px 2px 2px #999;"> </a></td>
            <td><a href="http://m.jd.com/activity/list.action?activityId=9328&sid=89bec302bfe1757c8702933602c3984a"> <img src="./京东触屏版_files/rBEhVVH1_QsIAAAAAAB1MmuuWWQAABhZgGR_xIAAHVK204.jpg" alt="2013茶粮冲饮换季大清仓" style="box-shadow:-2px 2px 2px #999;"> </a></td>
          </tr>
        </tbody>
      </table>
    </div>
    <ul class="pic-num1" id="idNum" style="width: 270px;">

    </ul>
  </div>
</div>

<input type="hidden" value="9" id="activity">

<script type="text/javascript">
	var picCount = $("#activity").val();
	$(".pic-num1").css("width",(picCount*30)+"px");
	var forEach = function(array, callback){
		for (var i = 0, len = array.length; i < len; i++) { callback.call(this, array[i], i); }
	}
	var st = createPicMove("idContainer2", "idSlider2", picCount);	//图片数量更改后需更改此数值
	var nums = [];
	//插入数字
	for(var i = 0, n = st._count - 1; i <= n;i++){
		//(nums[i] = $("idNum").appendChild(document.createElement("li"))).innerHTML = ++i;
		nums[i] = document.getElementById("idNum").appendChild(document.createElement("li"));
	}
	//设置按钮样式
	st.onStart = function(){
		forEach(nums, function(o, i){ o.className = st.Index == i ? "on" : ""; })
	}

    var touchX = [];
	var touchY = [];
	function touchMove(event) {
		var touches = event.touches;
		var fristTouch = touches[0];
		var lastX = $(window).scrollLeft();
		var lastY = $(window).scrollTop();
		touchX.push(fristTouch.pageX);
		touchY.push(fristTouch.pageY);
		if (touchY.length > 1) {
			event.preventDefault();
			var dis = touchY[touchY.length-2]-touchY[touchY.length-1];
			if(Math.abs(dis)>50){
				window.scrollTo(lastX,window.lastY+dis);
			}
		}
	}
	//触屏  离开屏幕事件
	function touchEnd(event) {
		var touches = event.touches;
		var fristTouch = touches[0];

		if (touchX != undefined && touchX.length > 1) {
			var startX = parseInt(touchX.shift(),10);
			var endX = parseInt(touchX.pop(),10);

			var disValue = Math.abs(startX - endX);

            if (touchY.length > 1) {
                var lastX = $(window).scrollLeft();
                event.preventDefault();
                var dis = touchY[touchY.length - 2] - touchY[touchY.length - 1];
                if (Math.abs(dis) > 50 && Math.abs(dis) > disValue) {
                    window.scrollTo(lastX, window.lastY + dis);
                } else {
                    if (disValue > 50) {
                        event.preventDefault();
                        bindEvent(startX,endX);
                    }
                }
            }else{
               if (disValue > 50) {
                event.preventDefault();
                bindEvent(startX,endX);
            }
            }

			touchX = [];
			touchY = [];
		}
	}

    /**
     *  绑定触屏触发事件
     * @param start
     * @param end
     */
    function bindEvent(start,end){
         if (start >= end) {
                   st.Next();
                } else {
                    st.Previous();
                }
    }
	st.Run();

</script>

<script type="text/javascript">
$("#unsupport").hide();
if(!testLocalStorage()){ //not support html5
    if(5!=0 && !$clearCart && !$teamId){
		$("#html5_cart_num").text(5>0>0);
	}
}else{
	updateToolBar('index');
}

$("#html5_cart").click(function(){
//	syncCart('89bec302bfe1757c8702933602c3984a',true);
	location.href='/cart/cart.action';
});

function reSearch(){
var depCity = window.sessionStorage.getItem("airline_depCityName");
	if(testSessionStorage() && isNotBlank(depCity) && !/^\s*$/.test(depCity) && depCity!=""){
    	var airStr = '<form action="/airline/list.action" method="post" id="reseach">'
        +'<input type="hidden" name="sid"  value="89bec302bfe1757c8702933602c3984a"/>'
        +'<input type="hidden" name="depCity" value="'+ window.sessionStorage.getItem("airline_depCityName") +'"/>'
        +'<input type="hidden" name="arrCity" value="'+ window.sessionStorage.getItem("airline_arrCityName") +'"/>'
        +'<input type="hidden" name="depDate" value="'+ window.sessionStorage.getItem("airline_depDate") +'"/>'
        +'<input type="hidden" name="depTime" value="'+ window.sessionStorage.getItem("airline_depTime") +'"/>'
        +'<input type="hidden" name="classNo" value="'+ window.sessionStorage.getItem("airline_classNo") +'"/>'
        +'</form>';
    	$("body").append(airStr);
    	$("#reseach").submit();
	}else{
    	window.location.href='/airline/index.action?sid=89bec302bfe1757c8702933602c3984a';
	}
}
 //banner 关闭点击
    $('.div_banner_close').click(function(){
        $('#div_banner_header').unbind('click');
        jQuery.post('/index/addClientCookieVal.json',function(d){
              $('#div_banner_header').slideUp(500);
        });
    });
    //banner 下载点击
    $('.div_banner_download').click(function(){
         var downloadUrl = $(this).attr('url');
         jQuery.post('/index/addClientCookieVal.json',function(d){
               window.location.href=downloadUrl;
        });
    });
</script>
</body>
</html>